body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-container {
    width: 100%;
    height: 100vh;
    background: url('../resource/bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5rem 10rem;
    border-radius: 10px;
    text-align: center;
}

.game-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.menu-btn:active {
    transform: scale(0.95);
}

.character-select {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.character-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.character-info {
    color: white;
    text-align: left;
    margin-top: 1rem;
}

.character-info h3 {
    margin: 0 0 0.5rem 0;
    color: #ffd700;
}

.character-info .trait {
    color: #ff9900;
    margin-bottom: 1rem;
}

.character-info p {
    margin: 0.2rem 0;
}

/* 角色选择界面 */
.character-select-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.character-avatars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.character-avatar:hover {
    transform: scale(1.1);
    border-color: #ffd700;
}

.character-avatar.selected {
    border-color: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.character-detail {
    display: flex;
    gap: 2rem;
}

.character-preview {
    flex: 0 0 400px;
}

.character-full {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

.character-info {
    flex: 1;
    color: white;
    padding: 1rem;
}

.character-name {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.character-trait {
    margin-bottom: 2rem;
}

.trait-name {
    color: #ff9900;
    font-size: 1.2rem;
    font-weight: bold;
}

.trait-desc {
    color: #cccccc;
    margin-top: 0.5rem;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 5px;
}

.stat-label {
    color: #aaaaaa;
    margin-right: 1rem;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.select-btn {
    background: #ffd700;
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

.back-btn {
    position: relative;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 关卡选择界面 */
.level-select-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 1200px;
}

.level-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.level-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.level-header {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.level-header:hover {
    background: rgba(255, 255, 255, 0.2);
}

.level-content {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.level-rewards {
    margin-bottom: 1rem;
}

.start-level-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-level-btn:hover {
    background: #45a049;
}

.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

/* 模态框基础样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal > * {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.close-btn:hover {
    opacity: 1;
}

/* 消息对话框样式 */
.message-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.message-title {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.message-text {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.message-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.message-actions button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.confirm-btn {
    background: #4CAF50;
    color: white;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.confirm-btn:hover, .cancel-btn:hover {
    transform: translateY(-2px);
}

/* 通知系统样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    min-width: 200px;
}

.notification.success {
    background: rgba(76, 175, 80, 0.9);
}

.notification.error {
    background: rgba(244, 67, 54, 0.9);
}

.notification.warning {
    background: rgba(255, 152, 0, 0.9);
}

.notification.info {
    background: rgba(33, 150, 243, 0.9);
}

.character-switch-content {
    padding: 2rem;
    max-width: 600px;
}

.character-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.character-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.character-option.active {
    background: rgba(62, 175, 124, 0.2);
    border: 1px solid rgba(62, 175, 124, 0.5);
}

.character-option img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.char-info {
    flex: 1;
}

.char-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.merchant-section {
    margin-bottom: 2rem;
}

.merchant-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.item-list, .effect-list {
    display: flex;

    gap: 1rem;
    flex-wrap: wrap;

}

.merchant-item {
    background: rgba(255, 255, 255, 0.1);
    width: 30%;
    padding: 1rem;
    border-radius: 8px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    align-items: center;
}

.merchant-item .item-info {
    flex: 1;
}

.merchant-item h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.merchant-item p {
    color: #ccc;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.item-price {
    color: #ffd700;
    font-weight: bold;
}

.buy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.buy-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
} 